{include file="public_iframe:head"}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>会员详情</h5>
                    <div class="ibox-tools" style="margin-top: -9px;">
                        <a href="javascript:location.reload();" class="btn btn-primary"><i class="fa fa-refresh"></i> 刷新</a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                        </div>
                        <form class="form-inline" action="" method="get">
                            <div class="col-sm-9">
                                <div class="input-group col-sm-3  pull-right">
                                    <input type="text" name="phone" value="{$phone?$phone:'';}" placeholder="手机关键词" class="input-sm form-control">
                              <!--        <input type="text" name="third_ordersn" value="{$third_ordersn?$third_ordersn:'';}" placeholder="支付宝交易号" class="input-sm form-control"> -->
			                         <span class="input-group-btn">
			                             <button type="submit" class="btn btn-sm btn-primary"> 搜索</button>
			                         </span>
                                </div>
                            </div>
                        </form>
                    </div>
                    <a class="btn btn-primary" href="{:url('Profit/profit_export')}">导出Excel</a>
                    
                    <br />

                    <div class="table-responsive">
                        <form action="__URL__/operate" method="post" id="operate_form">
                            <table class="table table-bordered table-hover"
                                   id="categoryTable">
                                <thead>
                                <tr class="active">
                                    <!-- <th><input onclick="choosebox(this)" type="checkbox" /></th> -->
                                   <!--  <th height="40">编号</th> -->
                                    <th>头像</th>
                                    <th>昵称</th>
                                    <th>收益</th>
                                    <th>收益类型</th>
                                    <th>绑定手机</th>
                                    <th>地区</th>
                                    <th>会员等级</th>
                                    <th width="140">操作时间</th>
                                    <th width="80">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="data" id="vo"}
                                    <tr>
                                       <!--  <td><input type="checkbox" name="users_id[]" value="{$vo['id']}" /></td> -->
                                     <!--    <td>{$vo['id']}</td> -->
                                        <td>
                                             {if condition="$vo.head_url"}
                                             <img alt="image" style="width:50px;height:50px;" class="img-circle" src="{$vo.head_url}">
                                             {/if}
                                         </td>
                                        <td>{if condition="$vo['nick_name']"}{$vo['nick_name']}{else/}暂无{/if}</td>
                                        <td>{$vo.commission}</td>
                                        <td>{$vo.commission_type}</td>
                                        <td>
                                            {if condition="$vo['phone']"}
                                                {$vo['phone']}
                                                {else/}
                                                暂无
                                            {/if}
                                        </td>
                                        <td>{if condition="$vo.province"}{$vo.province}|{$vo.city}|{$vo.county}{/if}</td>
                                        <td>
                                            {switch name="$vo.level"}
                                                {case value="0"}实习成员{/case}
                                                {case value="1"}普通会员{/case}
                                                {case value="2"}高级会员{/case}
                                                {default /}
                                            {/switch}
                                        </td>
                                        <td>{$vo['created_at']|date="Y-m-d H:i:s",###}</td>
                                        <td>
                                            <a href="{:url('Member/member_info',array('uid'=>$vo['uid']))}" class="btn btn-primary">用户详情</a>
                                        </td>
                                    </tr>
                                {/volist}
                                </tbody>
                            </table>

                        </form>
                        <div class="col-sm-12" style="padding:0px;">
                            <div align="center">
                                {$page}
                        </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>

</body>

</html>